<div class="form">
    <?php
    /* @var $form CActiveForm */
    $path = Yii::app()->request->baseUrl . '/';
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'upload-form',
        'enableAjaxValidation' => false,
        'enableClientValidation' => false,
        'clientOptions' => array(
            'validateOnSubmit' => true,
        ),
        'htmlOptions' => array('enctype' => 'multipart/form-data', 'accept-charset' => 'UTF-8'),
    ));
    ?>

    <p class="note">Fields with <span class="required">*</span> are required.</p>

    <?php
    echo $form->errorSummary($imagesUpload);
    ?>

    <div class="row">
        <?php echo $form->labelEx($imagesUpload, 'Month' . ' (*)'); ?>
        <?php
        echo $form->dropDownList($imagesUpload, 'month', CHtml::listData($months, 'id', 'name'));
        ?>
        <?php echo $form->error($imagesUpload, 'month'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($imagesUpload, 'Year ' . ' (*)'); ?>
        <?php
        echo $form->dropDownList($imagesUpload, 'year', CHtml::listData($years, 'id', 'name')); //, array('prompt' => 'Chọn loại danh mục')
        ?>
        <?php echo $form->error($imagesUpload, 'year'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($imagesUpload, 'Select images'); ?>
        <?php
        $this->widget('CMultiFileUpload', array(
            'name' => 'url',
            'model' => $imagesUpload,
            'attribute' => 'files',
            'accept' => 'jpeg|jpg|gif|png',
            'denied' => Yii::t('gallery', 'You can not select this file'),
            'duplicate' => Yii::t('gallery', 'This file is selected'),
            'remove' => Yii::t('gallery', '[Delete]'),
            'selected' => Yii::t('gallery', 'You selected: $file'),
            'htmlOptions' => array('class' => 'gallery', 'size' => '30'),
        ));
        echo $form->error($imagesUpload, 'url');
        ?>
    </div>
    <div class="row buttons">
        <?php echo CHtml::submitButton('Upload'); ?>
    </div>

    <?php $this->endWidget(); ?>

</div><!-- form -->